#include "CQFriendObj.h"
#include <string>
using namespace std;

CQFriendObj::CQFriendObj(UserInfo u, QWidget* parent)
	: QWidget(parent), _u(u), CQBaseWin<CQFriendObj>(this)
{
	ui.setupUi(this);

	ui.lab_name->setText(u.username);
	ui.lab_sign->setText(u.sign);

	set_circle_pic_and_show("images/pic_head", u.pic_head, ui.lab_head);
}

CQFriendObj::~CQFriendObj()
{
}

UserInfo CQFriendObj::getUserInfo()
{
	return _u;
}
